<template>
  <div class="all">
    <div class="top">
      <div class="search">
        <slot name="top"></slot>
      </div>
    </div>
    <div class="table">
      <div class="table-t">
        <slot name="table"></slot>
        <div class="pagination"><slot name="pagination"></slot></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Common",
  props: {},
  components: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
};
</script>


<style lang="scss" scoped>
.all {
  display: flex;
  flex-direction: column;
  height: 100%;
  .top {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    .search {
      width: 96%;
      background-color: white;
      padding: 20px 10px 0px 10px;
      border-radius: 6px;
    }
  }
  .table {
    margin-top: 20px;
    padding-bottom: 12px;
    flex: 1;
    display: flex;
    justify-content: center;

    .table-t {
      width: 96%;
      background-color: white;
      padding: 20px 10px 0px 10px;
      border-radius: 6px;
      .pagination {
        height: 10%;
        display: flex;
        align-items: center;
        justify-content: end;
      }
    }
  }
}
</style>
